


<%@ Page Language="C#" MasterPageFile="~/ClinicalForms/ClinicalHeaderFooter.master" AutoEventWireup="true" CodeFile="frmScheduler_AppointmentNewHistory.aspx.cs" Inherits="frmScheduler_AppointmentNewHistory"  Title="Untitled Page"  %>
    <asp:Content ID="Content1" ContentPlaceHolderID="clinicalheaderfooter" Runat="Server">
    <link type="text/css" href="../Style/_assets/css/grid.css" rel="stylesheet" />
<link type="text/css" href="../Style/_assets/css/round.css" rel="stylesheet" />
       <form id="appointmentNewHistory" method="post" runat="server" enableviewstate="true" title="patientAppointmentNewHistory">
       <script language="javascript" type="text/javascript">
            function CheckDate(vDateName)
            {

             var mYear = vDateName.value.substr(7,4)  
             if (mYear != '')
             {
                 if (mYear < 1930)
                 {
                    alert("Selected year should be between 1930 and Current year. Reenter..");
                    vDateName.value = "";
                    vDateName.focus();

                  }
              }
            }
        </script>  
       <%-- <br />
        <br />--%>
       <h1 class="nomargin" id="header" runat="server" >New Appointment</h1>
        <div class ="border center formbg" >
            <table class = "center" width="100%"  border="0" cellpadding="0" cellspacing="6">
                <tr>
                <%--<td class="form" align="center" colspan="2">--%>
                        <%--<label class="patientInfo">Patient Name:</label>
                        <asp:Label ID="lblPatientNameValue"  runat="server" Text="Mary Longlastname"></asp:Label>
                         
                       
                        <label class="patientInfo"  runat="server"></label> 
                       <label id="lblpatientenrol" class="patientInfo" runat="server" ></label>
                        <asp:label id="lblPatientEnrollmentNoValue" CssClass= "patientInfo" runat="server" Text="444545"></asp:label>
                        
                        <label class="patientInfo" runat="server"></label>
                         <label id="lblExisclinicID" class="patientInfo" runat="server"></label>
                        <asp:Label id="lblHospitalNoValue" CssClass= "patientInfo" runat="server" Text="12345678-444444-596A"></asp:Label>--%>
                        
                        <%--<label class="patientInfo">Sex:</label> 
                        <asp:label id="lblPatientGenderValue"   runat="server" text="female"></asp:label>--%>
                    <%--</td>--%>
                </tr>
                <tr>
                    <td class="border pad5 whitebg" valign="top" width="50%" style="height: 39px" >
                        <label class="required">*Appointment Date:</label>
                        <asp:TextBox id="txtAppDate" maxlength="11" runat="server" ></asp:TextBox>
                        
                        <img src="../images/cal_icon.gif" height="22" alt="Date Helper" onclick="w_displayDatePicker('<%= txtAppDate.ClientID %>');" /> 
                        <span class="smallerlabel">(DD-MMM-YYYY)</span>
                    </td>
                    <td class="border pad5 whitebg" align="center" width="50%" style="height: 39px" >
                        <label class="required">*Purpose:</label>
                        <asp:DropDownList ID="ddAppPurpose" runat="server" AutoPostBack="false" Width="125px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="border pad5 whitebg" align="center"  colspan="2" style="height: 32px">
                     <label  class="required right15" style="width: 17%"  >
                         &nbsp; &nbsp; &nbsp; *Provider:&nbsp;</label><asp:DropDownList ID="ddAppProvider" runat="server" AutoPostBack="false" Width="125px">
                        </asp:DropDownList>
                    </td>
                   
                </tr>
                <tr>
                    <td class="border pad5 whitebg" align="center" colspan="2" style="height: 24px">
                        <asp:Button ID="btnSubmit" runat="server" Text="Save" OnClick="btnSubmit_Click" Enabled="True"  />
                        <asp:Button ID="btndelete" runat="server" Text = "Delete" OnClick="btndelete_Click" Visible="false"  />
                        <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" Enabled="True"  />
                        <asp:Button ID="theBtn" Text="OK"  CssClass = "textstylehidden" runat="server" OnClick="theBtn_Click"  />  
                    </td>
                </tr>  
                <tr>
                    <td class="border pad5 whitebg" valign="top" colspan="2"  >
                        <div class="grid">
                                <div class="rounded">
                                    <div class="top-outer"><div class="top-inner"><div class="top">
                                        <h2>Appointments</h2>
                                    </div></div></div>
                                    <div class="mid-outer"><div class="mid-inner"><div class="mid">     
                                        <div id="div-gridview" class="GridView whitebg">
                            <asp:gridview id="grdSearchResult"   AllowSorting="True" runat="server" 
                                BorderWidth="0" GridLines="None" CssClass="datatable" CellPadding="0" CellSpacing="0" autogeneratecolumns="False" Width="100%" PageSize="1"  
                                BorderColor= "white" OnSorting="grdSearchResult_Sorting" 
                                OnRowDataBound="grdSearchResult_RowDataBound" onselectedindexchanging="grdSearchResult_SelectedIndexChanging" 
                                >
                                <HeaderStyle  HorizontalAlign="Left"></HeaderStyle>
                                <RowStyle CssClass="row" />
                            </asp:gridview>
                       </div>
                </div></div></div>
            <div class="bottom-outer"><div class="bottom-inner">
            <div class="bottom"></div></div></div>                   
        </div>      
    </div>
                    </td>
                </tr>

            </table>
        </div>
    </form>
    <script language ="javascript" type ="text/javascript">
    </script>
 </asp:Content>


